package com.eshipenet.shipnet.edgeboxrpc.ignite;

import com.eshipenet.shipnet.edgeboxrpc.service.EdgeBoxEdgeServiceImp;

import config.ServerConfigurationFactory;
import org.apache.ignite.Ignite;
import org.apache.ignite.Ignition;
import org.apache.ignite.configuration.IgniteConfiguration;
import scala.collection.Iterator;
import scala.collection.Seq;
import squirrel.SqlValue;


import java.util.ArrayList;

public class EdgeBoxIgnite {

    public static void ignite() throws Exception {


        Ignite ignite = Ignition.start("EdgeBox-server.xml");
        ignite.services().deployMultiple("EdgeBoxService",
                new EdgeBoxEdgeServiceImp(), 1, 1);
      /*  try {
            Ignite ignite = Ignition.start(ServerConfigurationFactory.createConfiguration());
        } catch (Exception e) {
            e.printStackTrace();
        }
*/

    }


    public static void main(String[] args) {

        try {
            ignite();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
